import React from 'react';
import ReactDOM from 'react-dom';
import {Application} from "./pages";
import {Provider} from "react-redux";
import {store, persist} from './redux'
import {PersistGate} from "redux-persist/integration/react";
import {ConfigProvider} from "antd";
import zhCN from "antd/lib/locale/zh_CN";
import "antd/dist/antd.css";
import './index.less';
import { BrowserRouter } from 'react-router-dom';

ReactDOM.render(
    <Provider store={store}>
        <PersistGate persistor={persist}>
            <ConfigProvider locale={zhCN}>
                <BrowserRouter basename="/ui">
                    <Application/>
                </BrowserRouter>
            </ConfigProvider>
        </PersistGate>
    </Provider>,
  document.getElementById('root')
);

